<template>
  <div id="app">
    <!-- <keep-alive> -->
      <router-view />
    <!-- </keep-alive> -->
  </div>
</template>

<script>

export default {
  name: 'App',
  watch: {
    $route(to, from) {
       if(from.name=='arbitLogin'&&to.name=='VerifycommissionerIndex'||
          from.name=='arbitLogin'&&to.name=='VerifydirectorIndex'||
          from.name=='arbitLogin'&&to.name=='ArbitratordirectorIndex'){
          this.needDeal()
          this.settimes=setInterval(()=>{
             this.needDeal()
          },30000)
       }

       if(to.name=='arbitLogin'){clearInterval(this.settimes)}
    }
  },
  created(){
    if(this.$route.name=='arbitLogin'){
      clearInterval(this.settimes)
    }else{
        this.needDeal()
    }
  }
}
</script>

<style>
  html,body{
    height: 100%;
  }
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* text-align: center; */
    /* color: #2c3e50; */
    height: 100%;
    width: 1920px;
    background: #f5f5f5;
    /* color: #617991; */
    /* margin-top: 60px; */

  }
</style>
